package com.woniu.zsd.permission.service.impl;

import com.woniu.zsd.permission.entity.Menu;
import com.woniu.zsd.permission.entity.RolesMenu;
import com.woniu.zsd.permission.mapper.RolesMenuMapper;
import com.woniu.zsd.permission.service.IRolesMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2025-04-17
 */
@Service
public class RolesMenuServiceImpl extends ServiceImpl<RolesMenuMapper, RolesMenu> implements IRolesMenuService {
    @Autowired
    private RolesMenuMapper rolesMenuMapper;

    @Override
    public List<Menu> selMenuByAdminId(Integer adminId) {
        return rolesMenuMapper.selMenuByAdminId(adminId);
    }
}
